<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

  <script>
    var a = 10;
    var b = 2.1;
    var f = true;
    var s = "123";
    var v1 = [];
    var v2 = new Array(4);

    function person(pName, pAge) {
      this.personName = pName;
      this.personAge = pAge;

      this.sleep = function (){
        console.log(this.personName + "睡着了" + this.personAge);
      }
    }

    var p = new person("李奇凇", 20);
    console.log(p.sleep())
  </script>

</body>
</html>